package com.bingxue.edu.management.system.model.entity;

import com.bingxue.edu.common.enums.CommonStatusEnum;
import com.bingxue.edu.common.enums.JobInitStrategyEnum;
import com.bingxue.edu.framework.common.model.BusinessEntity;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 定时任务实体
 *
 * @author panbo
 * @since 2024/08/02 13:34
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("base_schedule_job")
public class ScheduleJob extends BusinessEntity {

    /**
     * job编码
     */
    private String jobKey;

    /**
     * job名称
     */
    private String jobName;

    /**
     * 定时表达式
     */
    private String cron;

    /**
     * 参数
     */
    private String paramJson;

    /**
     * 初始化策略
     */
    private JobInitStrategyEnum initStrategy;

    /**
     * 是否记录日志
     */
    private Boolean saveLog;

    /**
     * 描述
     */
    private String description;

    /**
     * 状态
     */
    private CommonStatusEnum status;
}
